#include "stdafx.h"
#include "VideoInterfere.h"
#include "log.h"
int mos_to_droprate[5]={5, 10,15,25,400};
BOOL net_packet_drop(int mos)
{
	int drop_rate=mos_to_droprate[mos];
	int i=((rand()) % drop_rate);

	if( i== 0)
	{
		Log(L"net packet drop",0);
		return FALSE;
	}
		
	else
		Log(L"net packet drop",1);
		return TRUE;
}